package com.kha.listone.screen.compound;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;

import com.kha.listone.ListOne;
import com.kha.listone.common.CompoundScreen;
import com.kha.listone.util.Commands;

public class ListScreen extends CompoundScreen {

	public ListScreen(ListOne midlet, String title, int type) {
		super(midlet, title, type);
	}

	protected void initScreen() {

		this.addCommand(Commands.ADD);

		super.initScreen();
	}

	public void commandAction(Command c, Displayable d) {
		if (c == Commands.OPT_ADD || c == Commands.ADD) {
			mainMIDlet.next(mainMIDlet.getAddTaskScreen());
		}
	}

}
